package Day21.面向对象测试;

public class Circle  extends Shape{
    private double r;
    public void setR(double r){
        this.r = r;
    }

    @Override
    public double area() {
        return 3.14*r*r;
    }
}
